
import React from 'react';
// 编辑 发送
export default function DoWork(props) {
    
    return (
        props.row.status == 0 ?
        <React.Fragment>
            <span onClick={() =>{props.openNewMessageDialog('编辑',props.row)}} style={{ color: 'rgb(60, 154, 255)', cursor: 'pointer' }}>编辑</span>&nbsp;&nbsp;&nbsp;&nbsp;
            <span onClick={() =>{props.openSendDialog(props.row)}} style={{ color: 'rgb(60, 154, 255)', cursor: 'pointer' }}>发送</span>
        </React.Fragment>
        : <span style={{color:'#888888'}}>已发送</span>
    )
}